package dialect

import "gitee.com/dingiyan/goMyAdmin/service/interfaces"

const (
	// 方言名称
	DialectMysql = "mysql"
)

// 获取一个数据库操作对象，根据方言名称
func GetDialect(dialect string) interfaces.DBManager {
	switch dialect {
	case DialectMysql:
		return NewMySQL()
	default:
		return nil
	}
}
